/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.energy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 能耗表(月) 从总表定时取数据 存入
 *
 * @author pig code generator
 * @date 2023-12-22 16:39:46
 */
@Data
@TableName("bum_power_month_flow")
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "能耗表(月) 从总表定时取数据 存入")
public class PowerMonthFlow extends Model<PowerMonthFlow> {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @Schema(description ="id")
    private Long id;

    /**
     * 设备位置编码
     */
    @Schema(description ="设备位置编码")
    private String unitNo;

    /**
     * 按设备编号
     */
    @Schema(description ="按设备编号")
    private String deviceNo;

    /**
     * 时间值 202206 202207
     */
    @Schema(description ="时间值 202206 202207")
    private String timeValue;

    /**
     * 总能耗
     */
    @Schema(description ="总能耗")
    private Float totalValue;

    /**
     * 增量能耗
     */
    @Schema(description ="增量能耗")
    private Float incrValue;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;


}
